import request from '@/utils/request'

export default {
    //进入页面加载企业信息
    init(userId){
      return request({
          url:`/companys/company/info-client/` + userId,
          method:'get',
      })
    },

    //创建企业信息
    createCompany(data){

        const url = data.id === undefined? 'save':'update'

        return request({
            url:`/companys/company/` + url,
            method:'post',
            data:data
        })
    }
}
